package com.book.service.impl;

import com.book.dao.BookTypeDao;
import com.book.entity.BookTypeEntity;
import com.book.service.BookTypeService;
import com.book.utils.PageUtils;
import com.book.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("bookTypeService")
public class BookTypeServiceImpl extends ServiceImpl<BookTypeDao, BookTypeEntity> implements BookTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BookTypeEntity> page = this.page(
                new Query<BookTypeEntity>().getPage(params),
                new QueryWrapper<BookTypeEntity>()
        );

        return new PageUtils(page);
    }

}